﻿using Ace.AutoMapper;
using Ace.Entity.Wiki;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace Ace.Application.Wiki
{
    public class VideoInputBase: ValidationModel
    {
        

        /// <summary>
        ///标题
        /// </summary>
        public string Title { get; set; }


        /// <summary>
        ///视频截图
        /// </summary>
        public string ImageUrl { get; set; }


        /// <summary>
        ///视频存储路径
        /// </summary>
        public string FileUrl { get; set; }

         


        /// <summary>
        ///简介/广告内容
        /// </summary>
        public string Remark { get; set; }

           

        /// <summary>
        ///
        /// </summary>
        public string CreateID { get; set; }


        /// <summary>
        ///
        /// </summary>
        public DateTime CreateDate { get; set; }

        public int ST { get; set; }


        public int SortID { get; set; }

        public int SortID2 { get; set; }


        public decimal Price { get; set; }

        public int FileLength { get; set; }

        public int Ord { get; set; }

    }


    [MapToType(typeof(Video))]
    public class AddVideoInput : VideoInputBase
    { 
    }

    [MapToType(typeof(Video))]
    public class UpdateVideoInput : VideoInputBase
    {
        [RequiredAttribute(ErrorMessage = "{0}不能为空")]
        public string Id { get; set; }
    }
}
